import service from "@/utils/request";

export function getKnowledgeBaseItemList(data) {
  return service({
    url: "/knowledgebase_item/list",
    method: "post",
    data
  });
}

export function getKnowledgeBaseItem(id) {
  return service({
    url: "/knowledgebase_item/" + id,
    method: "get"
  });
}

export function enableKnowledgeBaseItem(data) {
  return service({
    url: "/knowledgebase_item/enable",
    method: 'post',
    data
  })
}

export function disableKnowledgeBaseItem(data) {
  return service({
    url: "/knowledgebase_item/disabled",
    method: 'post',
    data
  })
}

export function deleteKnowledgeBaseItem(data) {
  return service({
    url: "/knowledgebase_item/deletes",
    method: 'post',
    data
  })
}
